<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML>
<html>
<head>
    <%@ include file="/platform/style.jsp"%>
    <style>
        .state0{color:red}

    </style>
    <script>
        function query(){
            $w.execForm({pageNum:1})
        }
        function show(id){
            $w.openDialog({url:ctx+'/user/UserPage@showFeedBackList.page?bean.id='+id,title:"查看反馈信息",w:700,h:450,maximized:true,afterClose:function(re){
                if(re){
                    query();
                }
            }});
        }
    </script>
</head>

<body class="easyui-layout">
<div data-options="region:'center'" class="bodybg">
    <form id="queryForm" action="/user/UserPage@feedbackList.page" method="post">
        <w:hidden bind="pageNum"/>
        <w:hidden bind="pageSize_"/>
        <div class="easyui-panel ui-queryBar" border="false" data-options="doSize:false">
            <table cellpadding="0" cellspacing="0" style="margin-top:5px">
                <td width="80" align="right">时间：</td><td><w:text bind="bean.start" styleClass="easyui-datebox" style="width:95px"/>-<w:text bind="bean.end" styleClass="easyui-datebox" style="width:95px"/></td>
                <td width="80" align="right">来源:</td><td><select name="bean.type"><option value="">全部</option><w:option  bind="bean.type" value="1">微信</w:option><w:option bind="bean.type" value="2">PC端</w:option> </select></td>
                <td>
                    &nbsp;<a href="javascript:;" class="easyui-linkbutton" iconCls="icon_search" onclick="query()">查询</a>
                </td>
            </table>
        </div>
        <div class="ui_line" style="margin-top:10px"></div>
        <!-- 数据列表区域 -->
        <table class="ui-table" width="100%" cellpadding="1" cellspacing="1" data-options="showPage:true,
																								pageNum:<w:write bind="pageNum"/>,
																								pageSize:<w:write bind="pageSize_"/>,
																								total:<w:write bind="pagination.totalCount"/>,form:'queryForm'">
            <thead>
            <tr class="ui_th">
                <td width="40">ID</td>
                <td width="40">账号</td>
                <td width="40">手机号</td>
                <td width="100">内容</td>
                <td width="50">反馈来源</td>
                <td width="70">图片</td>
                <td width="100">时间</td>
                <td width="100" align="center">操作</td>
            </tr>
            </thead>
            <tbody>
            <w:iterate id="info" bind="resultList_">
                <tr class="ui_td">
                    <td><w:write bind="#info.id"/></td>
                    <td><w:write bind="#info.loginname"/></td>
                    <td><w:write bind="#info.phone"/></td>
                    <td ><p style="width: 120px; overflow: hidden;white-space: nowrap;text-overflow: ellipsis;"><w:write bind="#info.content"/></p></td>
                    <td><w:write bind="#info.type"  format="[,微信,PC端]"/></td>
                    <%--<td><w:write bind="#info.tepy"/></td>--%>
                    <td><w:notEqual bind="#info.photoview" value=""><img src="${fileserver }<w:write bind="#info.photoview"/>" style="width:40px;height:30px;"></w:notEqual></td>
                    <td><w:write bind="#info.writetime"/></td>
                    <td align="center">
                        <a href="javascript:void(0);" class="ui_btn" onclick="show(<w:write bind="#info.id"/>)">查看</a>
                    </td>

                    </td>
                </tr>
            </w:iterate>
            </tbody>
        </table>
    </form>
</div>
</body>
</html>
